package Book;

/**
 * Created with IntelliJ IDEA.
 * User: 花海
 * Date: 2022-08-12
 * Time: 22:15
 */
public class book {


    private String name;
    private int price;
    private String author;
    private String tpye;
    private boolean isborrowed;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTpye() {
        return tpye;
    }

    public void setTpye(String tpye) {
        this.tpye = tpye;
    }

    public boolean isIsborrowed() {
        return isborrowed;
    }

    public void setIsborrowed(boolean isborrowed) {
        this.isborrowed = isborrowed;
    }

    @Override
    public String toString() {
        return "book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", author='" + author + '\'' +
                ", tpye='" + tpye + '\'' +
                ", isborrowed=" + isborrowed +
                '}';
    }

    public book(String name, int price, String author, String tpye, boolean isborrowed) {
        this.name = name;
        this.price = price;
        this.author = author;
        this.tpye = tpye;
        this.isborrowed = isborrowed;
    }


}
